package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_activity")
@ApiModel(value="ShopActivityEntity对象", description="活动表")
public class ShopActivityEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "标题")
    @ApiModelProperty(value = "标题")
    private String title;

    @Column(comment = "封面图片")
    @ApiModelProperty(value = "封面图片")
    private String headPicUrl;

    @Column(comment = "活动内容")
    @ApiModelProperty(value = "活动内容")
    private String content;

    @Column(comment = "活动开始时间")
    @ApiModelProperty(value = "活动开始时间")
    private LocalDateTime startTime;

    @Column(comment = "活动结束时间")
    @ApiModelProperty(value = "活动结束时间")
    private LocalDateTime endTime;

    @Column(comment = "活动地点")
    @ApiModelProperty(value = "活动地点")
    private String address;

    @Column(comment = "活动人数")
    @ApiModelProperty(value = "活动人数")
    private Integer totalNum;

    @Column(comment = "已报名人数")
    @ApiModelProperty(value = "已报名人数")
    private Integer signInNum;

    @Column(comment = "门票价格（单位元）")
    @ApiModelProperty(value = "门票价格（单位元）")
    private Double price;

    @Column(comment = "活动介绍")
    @ApiModelProperty(value = "活动介绍")
    private String introduction;

    @Column(comment = "活动要求")
    @ApiModelProperty(value = "活动要求")
    private String requires;

    @Column(comment = "活动状态：1-未开始；2-进行中；3-已结束")
    @ApiModelProperty(value = "活动状态：1-未开始；2-进行中；3-已结束")
    private String status;

    @Column(comment = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "创建人")
    private Long createBy;

    @Column(comment = "修改时间")
    private LocalDateTime updateTime;

    @Column(comment = "修改人")
    private Long updateBy;

    @Column(comment = "逻辑删除标志")
    @TableLogic
    private Integer delFlag;



}
